﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/StockholmsStad.Utilities.Enums" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/StockholmsStad.Utilities.Enums" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:simpleType name="ApplicationErrorCode">
    <xs:restriction base="xs:string">
      <xs:enumeration value="DataConnectionFailure" />
      <xs:enumeration value="ApplicationRuntimeException" />
      <xs:enumeration value="ServiceContractException" />
      <xs:enumeration value="UserNotAuthorized" />
      <xs:enumeration value="UnknownError" />
      <xs:enumeration value="ConnectionStringMissing" />
      <xs:enumeration value="AppSettingKeyMissing" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="ApplicationErrorCode" nillable="true" type="tns:ApplicationErrorCode" />
  <xs:simpleType name="SystemErrorCode">
    <xs:restriction base="xs:string">
      <xs:enumeration value="DataAccessFailure" />
      <xs:enumeration value="AccessDenied" />
      <xs:enumeration value="UserHasNoTicket" />
      <xs:enumeration value="UserNotExists" />
      <xs:enumeration value="UserAllreadyExist" />
      <xs:enumeration value="MinisterNotExists" />
      <xs:enumeration value="IndividualBookingMinisterNotProvided" />
      <xs:enumeration value="TimeBlockNotExists" />
      <xs:enumeration value="MinisterCodeNotExists" />
      <xs:enumeration value="MinisterCodeAlreadyExists" />
      <xs:enumeration value="TimeBlockTimeAlreadyExists" />
      <xs:enumeration value="LanguageDoesNotExist" />
      <xs:enumeration value="CeremonyLanguageDoesNotExist" />
      <xs:enumeration value="CertificateLanguageDoesNotExist" />
      <xs:enumeration value="BookingMustBeEitherOrdinaryOrIndividual" />
      <xs:enumeration value="BookingNotExist" />
      <xs:enumeration value="CoupleNotExists" />
      <xs:enumeration value="CoupleHasNoTicket" />
      <xs:enumeration value="BookingIsOutsideImpedimentDoc" />
      <xs:enumeration value="CeremonyNotExists" />
      <xs:enumeration value="BookingDateMissing" />
      <xs:enumeration value="TextTypeNotExists" />
      <xs:enumeration value="TicketNotExists" />
      <xs:enumeration value="SpecialNeedAlreadyExists" />
      <xs:enumeration value="ReportNotExists" />
      <xs:enumeration value="HistoryNotExists" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="SystemErrorCode" nillable="true" type="tns:SystemErrorCode" />
</xs:schema>